package com.joseph.websocket.handler;

import com.joseph.websocket.bean.SessionUser;
import com.joseph.websocket.component.SessionManager;
import com.joseph.websocket.util.AttrUtil;
import com.joseph.websocket.util.ParserUtil;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundHandlerAdapter;
import io.netty.channel.ChannelPromise;
import io.netty.handler.codec.MessageToMessageDecoder;
import io.netty.handler.codec.http.FullHttpRequest;

import java.util.List;

/**
 * 建立WS连接前用户身份验证
 */
public class T2Handler extends ChannelOutboundHandlerAdapter {


    @Override
    public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
        System.out.println("T2");
//        ctx.writeAndFlush();
        super.write(ctx, msg, promise);
    }
}
